package com.wx.tgp.designpattern.observerPattern.observer02;

/**
 * 同事
 */
public class SockerObserver extends SockerObserverSub {

    public SockerObserver(String name,SecretartSub sub){
        super(name,sub);
    }
    @Override
    public void update() {
        System.out.println(sub.getStatue() + "  " + name + "不能看股票了，要开始工作");
    }
}
